import Vue from 'vue'
import VueRouter from 'vue-router'
import QuillEditorView from '../views/QuillEditorView.vue'  //同步加载组件

Vue.use(VueRouter);  //注册路由（this.$router）

const routes = [
  {
    path: '/',
    name: 'quillEditor',
    component: QuillEditorView
  },
  {
    path: '/wangEditor',
    name: 'wangEditor',
    component: () => import('../views/WangEditorView.vue')
  },
  {
    path : "/markdown",
    name : "markdown",
    component: () => import('../views/MarkdownView.vue')
  },
  {
      path : "/jsonToExcel",
      name : "jsonToExcel",
      component: () => import('../views/JsonToExcelView.vue')
  },
  {
        path : "/jsonToCsv",
        name : "jsonToCsv",
        component: () => import('../views/JsonToCsvView.vue')
    },
  {
        path : "/jsonToCsv2",
        name : "jsonToCsv2",
        component: () => import('../views/JsonToCsvView2.vue')
    }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
